#include <pthread.h>
#include <stdio.h>

struct St1
{
    int a;
    int b;
};

void *func(void *arg)
{
    struct St1* s =(struct St1*)arg;  
    printf("a:%d,b:%d\n",s->a,s->b);
}

int main()
{
    struct St1 s1 = {1, 2};
    pthread_t tid;
    pthread_create(&tid, NULL, func, &s1);
    pthread_join(tid,NULL);
    return 1;
}
